           <div class="search">
			<div class="search-list">
			<div class="nav-table">
					   <div class="long-title"><span class="all-goods">全部分类</span></div>
					   	<!-- 横向导航 start -->
						<?php $this->load->view('public/horiz-menu.html');?>
						<!-- 横向导航 end -->
			</div>
			
					
					<div class="am-g am-g-fixed">
						<div class="am-u-sm-12 am-u-md-12">
	                  	<div class="theme-popover">														
						
							<ul class="select">
								<p class="title font-normal">
								
									<span class="total fl">搜索到<strong class="num"><?php echo $count_goods;?></strong>件相关商品</span>
								</p>
								<div class="clear"></div>
								<li class="select-result">
									<dl>
										<dt>已选</dt>
										<dd class="select-no"></dd>
										<p class="eliminateCriteria">清除</p>
									</dl>
								</li>
								<div class="clear"></div>
								<li class="select-list">
									<dl id="select2">
										<dt class="am-badge am-round">种类</dt>
										<div class="dd-conent">
											<dd class="select-all" cat-id="0"><a href="javascript:void(0);">全部</a></dd>
											<?php foreach ($list_child_cate as $k => $v):?>
											<dd <?php if($cat_id==$v['cat_id']):?> class="selected"<?php endif;?> cat-id="<?php echo $v['cat_id'];?>"><a href="javascript:void(0);"><?php echo $v['cat_name'];?></a></dd>
											<?php endforeach;?> 
										</div>
									</dl>
								</li>
							</ul>
							<div class="clear"></div>
                        </div>
							
							<div  id="list_ajax" cat-id="<?php echo $cat_id;?>" goods-name="<?php echo $goods_name;?>"></div>

						</div>
					</div>
					<!-- footer start -->
						<?php $this->load->view('public/footer.html');?>
					<!-- footer end -->
				</div>

			</div>

		<!-- 右边侧边栏 start -->
			<?php $this->load->view('public/right-menu.html');?>
		<!-- 右边侧边栏 end -->
		<script>
			window.jQuery || document.write('<script src="<?php echo base_url(),FRONT_DIR?>js/jquery-1.9.min.js"><\/script>');
		</script>
		<script type="text/javascript" src="<?php echo base_url(),FRONT_DIR?>js/quick_links.js"></script>

<div class="theme-popover-mask"></div>

	<script type="text/javascript">
		$(function(){
			$.ajax({
              url: "<?php echo base_url(),'goods/list_ajax';?>",
              type: "get",
              dataType: "html",
              'data':{
                    id:$('#list_ajax').attr('cat-id'),
					goods_name:$('#list_ajax').attr('goods-name')
                },
            beforeSend : function (jqXHR, settings) {
                      $('#list_ajax').append('<p><img src="<?php echo base_url(),FRONT_DIR?>images/loading.gif" style="width:28px;"  width="28" alt="数据交互中"></p>');
                },
              success: function(response, status, xhr){
                $('#list_ajax').html(response);
              
              }
        });
		
		//点击分类ajax
		$("dl#select2 dd").click(function(){
			
			$.ajax({
              url: "<?php echo base_url(),'goods/list_ajax';?>",
              type: "get",
              dataType: "html",
              'data':{
                    id:$(this).attr('cat-id')
                },
            beforeSend : function (jqXHR, settings) {
                      $('#list_ajax').append('<p><img src="<?php echo base_url(),FRONT_DIR?>images/loading.gif" style="width:28px;"  width="28" alt="数据交互中"></p>');
                },
              success: function(response, status, xhr){
                $('#list_ajax').html(response);
				$("strong.num").text($("div.search-content").attr("data-num"));
                
              }
        });
		
		});
		
		
		//分页
		$('ul.am-pagination li a').live('click',function(){
         var url = $(this).attr('ajaxhref');
			$.ajax({
              url: url,
              type: "get",
              dataType: "html",
              'data':{
                    id:$(this).attr('cat-id')
                },
            beforeSend : function (jqXHR, settings) {
                      $('#list_ajax').append('<p><img src="<?php echo base_url(),FRONT_DIR?>images/loading.gif" style="width:28px;"  width="28" alt="数据交互中"></p>');
                },
              success: function(response, status, xhr){
                $('#list_ajax').html(response);
                
              }
        });
		
		});
		
		
		
		//点击清除刷新页面
		$("p.eliminateCriteria").click(function(){
			location.reload();
		});
		
		
		
		
		});
		
	</script>

	</body>

</html>